package com.lucky.auth_boot.controller;

import com.lucky.auth_boot.common.Result;
import com.lucky.auth_boot.pojo.dto.ChangePasswordDTO;
import com.lucky.auth_boot.service.LoginLogService;
import jakarta.annotation.Resource;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
public class LoginLogController {

    @Resource
    private LoginLogService loginLogService;

    @GetMapping("/log/queryLoginLogList")
    public Result<?> queryLoginLogList(Pageable pageable) {
        return Result.success(loginLogService.queryLoginLogList(pageable));
    }
}
